<?php

class User_Model_User
{
    /**
     * data container
     * @var array
     */
    protected $data = array();

    /**
     * constructor
     * @return array
     */
    public function __construct($data = array())
    {
        $this -> data = $data;
    }

    public function as_array()
    {
        return $data;
    }

    public function __get($name)
    {
        return isset($this -> data[$name]) ? $this -> data[$name] : null;
    }

    public function __set($name, $value)
    {
        $this -> data[$name] = $value;
    }

    public function delete()
    {

    }

    public function addEmbed($name, $data)
    {

    }

    public function addRef()
    {

    }

    public function removeEmbed($name, $data)
    {

    }

    public function clearEmbed($name)
    {

    }
    
    public function removeRef(){
        
    }
    
    public function clearRef(){
        
    }
}
